from pprint import pprint

'''vowels = set('aeiou')
word = 'hello'
found = {}
u = vowels.union(set(word))
d = vowels.difference(set(word))
i = vowels.intersection(set(word))
'''
'''for j in word:
    if j in found:
        found[j] += 1
    else:
        found[j] = 1
    found.setdefault(j, 0)
    found[j] = found[j]+1 if j in vowels else 1

for k, v in sorted(found.items()):
    print(k, 'was found', v, 'time(s).')'''
'''print(sorted(u))
print(sorted(d))
print(sorted(i))'''

'''vowels = ('a', 'e', 'i', 'o', 'u')
print(type(vowels))
word = ('Hello',)
print(type(word))'''

'''people = {}
people['Ford'] = {'Name': 'Ford Prefect',
                  'Gender': 'Male',
                  'Occupation': 'Researcher',
                  'Home Planet': 'Betelgeuse Seven'}
people['Arthur'] = {'Name': 'Arthur Dent',
                    'Gender': 'Male',
                    'Occupation': 'Sandwich-Maker',
                    'Home Planet': 'Earth'}
people['Trillian'] = {'Name': 'Tricia McMillian',
                      'Gender': 'Female',
                      'Occupation': 'Methematician',
                      'Home Planet': 'Earth'}
people['Robot'] = {'Name': 'Marvin',
                   'Gender': 'Unknown',
                   'Occupation': 'Paranoid Android',
                   'Home Planet': 'Unknown'}
pprint(people['Arthur']['Occupation'])'''


def s4v(phrase: str) -> str:
    vowel = set('aeiou')
    return vowel.intersection(set(phrase))


def s4l(phrase: str, letter: str = 'aeiou') -> set:
    return set(letter).intersection(set(phrase))


'''print(s4v('ugachaga'))
print(s4l('hitch-uhiker'))'''

'''todos = open('todos.txt', 'w')

print('Put out the trash.', file=todos)
print('Feed the cat.', file=todos)
print('Prepare tax return.', file=todos)

todos.close()

with open('todos.txt') as tasks:
    for chore in tasks:
        print(chore, end='')'''
